package com.jdyfy.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import static com.baomidou.mybatisplus.annotation.IdType.AUTO;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("file") //数据库中对应的表名
public class AllFile {

    @TableId(type =  AUTO)
    private Integer fileId; //文件id主键

    private String fileName; //文件名称

    private String fileType; //文件类型

    private String fileUrl; //文件地址

    private Long fileSize; //文件大小

    private Boolean is_delete; //是否删除

    private Boolean enable; //是否启用

    private String md5; //文件md5

    private String fileRole; //文件角色 announcementFile

}
